/*================================================================
*   Copyright (C) 2025 baichao All rights reserved.
*
*   文件名称：main.c
*   创 建 者：baichao
*   创建日期：2025年01月02日
*   描    述：
*
================================================================*/

#include "EmailService.h"
#include "Notification.h"
#include "SMSService.h"

int main() {
  // 使用邮件服务
  NotificationService *email_service = create_email_service();
  Notification email_notification = {email_service, notify_impl};
  email_notification.notify(&email_notification, "Hello via Email!");

  // 使用短信服务
  NotificationService *sms_service = create_sms_service();
  Notification sms_notification = {sms_service, notify_impl};
  sms_notification.notify(&sms_notification, "Hello via SMS!");

  return 0;
}
